<template>
	<view>
		<u-modal v-model="isshow" :content="content" :showCancelButton="true" @cancel="cancel" @confirm="confirm"></u-modal>
	</view>
</template>

<script>
	export default {
		name:"dy-modal",
		props:{
			show: {
				type: Boolean,
				default: false
			},
			content: {
				type: String,
				default: ''
			}
		},
		watch: {
			show(newVal) {
				this.isshow = newVal
			}
		},
		data() {
			return {
				isshow: false
			};
		},
		methods: {
			cancel() {
				this.$emit('update:show', false)
			},
			confirm() {
				this.$emit('confirm')
			}
		}
	}
</script>

<style lang="scss" scoped>

</style>
